FROM nginx:1.23.0-alpine

RUN mkdir -p /etc/nginx/conf/ssl

# 本地配置文件替换远程
ADD backend/nginx.conf /etc/nginx/nginx.conf

# 本地SSL证书替换远程
ADD ssl/backend/9068114_backend-course.xdproject.top.key /etc/nginx/conf/ssl/9068114_backend-course.xdproject.top.key
ADD ssl/backend/9068114_backend-course.xdproject.top.pem /etc/nginx/conf/ssl/9068114_backend-course.xdproject.top.pem

# 开放端口
EXPOSE 80